package com.xzgj.fmmall.service.impl;

import com.xzgj.fmmall.dao.IndexImgMapper;
import com.xzgj.fmmall.entity.IndexImg;
import com.xzgj.fmmall.service.IndexImgService;
import com.xzgj.fmmall.vo.ResStatus;
import com.xzgj.fmmall.vo.ResultVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IndexImgServiceImpl implements IndexImgService{
    @Resource
    private IndexImgMapper indexImgMapper;

    @Override
    public ResultVO listIndexImgs() {
        List<IndexImg> list = indexImgMapper.listIndexImgs();
        return new ResultVO(ResStatus.OK,ResStatus.SUCCESS,list);
    }
}
